﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace OurWedding1.Models
{
    [MetadataType(typeof(WeddingBuddy))]
    public partial class Wedding
    {
    }

    public class WeddingBuddy
    {
        [Required(ErrorMessageResourceType = typeof (Resources), ErrorMessageResourceName = "Wedding_Name_Required")]
        [Display(ResourceType = typeof (Resources), Name = "Wedding_Name")]
        public string Name { get; set; }

        [DataType(DataType.Date)]
        [Display(ResourceType = typeof (Resources), Name = "Wedding_Date")]
        public DateTime? Date { get; set; }
                       
        [Display(ResourceType = typeof (Resources), Name = "Wedding_MassDate")]
        [DataType(DataType.DateTime)]
        public DateTime? MassDate { get; set; }

        [AllowHtml]
        [Display(ResourceType = typeof (Resources), Name = "Wedding_Foreword")]
        [DataType(DataType.Html)]
        public string Foreword { get; set; }

        [AllowHtml]
        [Display(ResourceType = typeof (Resources), Name = "Wedding_ConfirmationKeyText")]
        [DataType(DataType.Html)]
        public string ConfirmationKeyText { get; set; }
    }
}